home *** CD-ROM | disk | FTP | other *** search
/ Super PC 34 / Super PC 34 (Shareware).iso / spc / UTIL / DJGPP2 / V2 / DJLSR200.ZIP / src / libc / ansi / string / strcpy.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-29  |  216 b   |  12 lines

  1. /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
  2. #include <string.h>
  3.  
  4. char *
  5. strcpy(char *to, const char *from)
  6. {
  7.   char *save = to;
  8.  
  9.   for (; (*to = *from); ++from, ++to);
  10.   return save;
  11. }
  12.